package blink.view.slide_show;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

//permet de dessiner une image cible
public class IdentifyTargetImage extends JPanel {

	private static final long serialVersionUID = 1L;
	private Image img;
	private int size;

	public IdentifyTargetImage(Image img, int size) {
		this.img = img;
		this.size = size;
		this.setSize(size, size);
	}

	@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		g.drawImage(img, this.getWidth() / 2 - size / 2, this.getHeight() / 2 - size / 2, this);
	}

}
